package han.proof;

import han.entity.FontEntity;
import han.entity.GroupEntity;

/**
 * @author: Han
 * @date: 2018/7/11 9:31
 * @dscription: 放置SmartQ登陆凭证
 */
public class SmartqqProof {

    private static final SmartqqProof SMARTQQ_PROOF = new SmartqqProof();
    private String cookie;
    private FontEntity fontEntity;
    private long uid;
    private String vfwebqq;
    private String hash;
    private String psessionid;
    private GroupEntity detailInfoEntity;
    /**
     * 0:发送给好友,1:发送给群
     */
    private int type;

    private SmartqqProof() {
    }

    public static SmartqqProof getInstance() {
        return SMARTQQ_PROOF;
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    public FontEntity getFontEntity() {
        return fontEntity;
    }

    public void setFontEntity(FontEntity fontEntity) {
        this.fontEntity = fontEntity;
    }

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public String getVfwebqq() {
        return vfwebqq;
    }

    public void setVfwebqq(String vfwebqq) {
        this.vfwebqq = vfwebqq;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getPsessionid() {
        return psessionid;
    }

    public void setPsessionid(String psessionid) {
        this.psessionid = psessionid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "SmartqqProof{" + "<cookie=" + cookie + ">,\n<fontEntity=" + fontEntity + ">,\n<uid=" + uid +
                ">,\n<vfwebqq='" + vfwebqq + ">,\n<hash='" + hash + ">,\n<psessionid='" + psessionid + ">,\n<type=" + type + ">}";
    }

    public GroupEntity getDetailInfoEntity() {
        return detailInfoEntity;
    }

    public void setDetailInfoEntity(GroupEntity detailInfoEntity) {
        this.detailInfoEntity = detailInfoEntity;
    }
}
